package com.tech.cloudapp.controller;


import com.tech.cloudapp.biz.service.IBQuestionClassifyService;
import com.tech.cloudapp.db.entity.QuestionClassify;
import com.tech.cloudapp.model.CommonResponseDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 题目分类表 前端控制器
 * </p>
 *
 * @author mojianyou
 * @since 2025-03-23
 */
@RestController
@RequestMapping("/question-classify")
public class QuestionClassifyController {

    @Autowired
    private IBQuestionClassifyService bQuestionClassifyServiceImpl;

    @PostMapping("list")
    public CommonResponseDO list()
    {
        List<QuestionClassify> list = bQuestionClassifyServiceImpl.list();
        return CommonResponseDO.success(list);
    }
}

